home *** CD-ROM | disk | FTP | other *** search
- /*
- * dirret.h defines and structures for dir_retrieve()
- *
- * (c) Copyright 1988 Aspen Scientific
- * All Rights Reserved.
- */
-
- /* define only one of the following host systems
- */
- /* build under MS-DOS */
- #ifndef A_MSDOS
- # define A_MSDOS 1
- #endif
-
- /* build under Unix */
- #ifndef A_UNIX
- /** # define A_UNIX 1 **/
- #endif
-
- /* define this if you have an ansi c compiler
- */
- #define A_ANSI 1
-
- #define ALLOC_UNIT 5 /* allocate at least this much */
-
- /* define the length of each file name under MS-DOS and Unix
- */
- #ifdef A_MSDOS
- # define _FN_SZ 13 /* sizeof (find_buf.name) */
- #else
- # include <sys/dir.h>
- # define _FN_SZ DIRSIZ+1 /* see sys/dir.h */
- #endif
-
- struct dir_retrieve_t {
- char name[ _FN_SZ ]; /* file name */
- char subdir; /* is it a sub-dir? */
- };
-
- #ifdef A_ANSI
-
- extern struct dir_retrieve_t * dir_retrieve( char *, int * );
- extern void dir_free( struct dir_retrieve_t * );
-
- #else
-
- # define void int
-
- extern struct dir_retrieve_t * dir_retrieve();
- extern void dir_free();
-
- #endif
-